<?php
/**
 * Created by JetBrains PhpStorm.
 * User: ionafan2
 * Date: 26.05.13
 * Time: 18:03
 * To change this template use File | Settings | File Templates.
 */

namespace Ionafan2\GetonlyimgBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;


class UrlType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add(
            'url',
            'url',
            array(
                'required' => true,
                'attr'     => array(
                    'placeholder'   => 'Type or paste url...',
                ),
            )
        );
    }

    public function getName()
    {
        return 'url_form';
    }
}
